package com.springboot.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Product {
    //商品id
    @JsonProperty("sku_id")
    private Integer skuId;
    //商品名称
    @JsonProperty("sku_name")
    private  String skuName;
    //商品价格
    @JsonProperty("sku_price")
    private BigDecimal skuPrice;
    //图片
    @JsonProperty("sku_photo")
    private  String  skuPhoto;
    //是否在售
    @JsonProperty("sku_is_sale")
    private Integer skuIsSale;
    //种类id
    @JsonProperty("sku_ctgy_id")
    private Integer skuCtgyId;
    //条数id
    @JsonProperty("sku_term_id")
    private Integer skuTermId;

    Category category;


}
